<template>
    <div class="youke">
        <Navs left></Navs>
        <Main>
            <template slot="main">
                <van-cell :title="item.meta.name + '_' +inx" is-link  size="large" :label="'路径：' + item.path"  :to="item.path" v-for="(item,inx) in routes" :key="inx">
                </van-cell>
            </template>
        </Main>
    </div>
</template>

<script type="text/ecmascript-6">

    export default {
        //接收父级传递的参数
        props: [],
        //监听数据变化
        watch: {},
        data() {
            return {
                routes:[],
                activeName: '0'
            }
        },
//实例初始化之前触发事件
        beforeCreate() {
        },
//实例化之后触发事件
        created() {
        },
//实时监控data参数数据变化
        computed: {},
        //模板组件
        components: {},
//执行方法
        methods: {},
        mounted() {
            this.routes = this.$router.options.routes;
            console.log(this.routes)
        },
//路由退出时候调用
        //beforeRouteLeave(to, from, next){next()}
    }
</script>

<style scoped lang="less">
</style>
